/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.pojo;

/**
 *
 * @author LeMinh
 */
public class Catagory {

    private String catagoryName;
    private String catagoryLink;

    public Catagory() {
    }

    public Catagory(String catagoryName, String catagoryLink, String webPage) {
        this.catagoryName = catagoryName;
        if (catagoryLink.contains("http")) {
            this.catagoryLink = catagoryLink;
        } else {
            this.catagoryLink = webPage + catagoryLink;
        }

    }

    public void setCatagoryLink(String catagoryLink) {
        this.catagoryLink = catagoryLink;
    }

    public void setCatagoryName(String catagoryName) {
        this.catagoryName = catagoryName;
    }

    public String getCatagoryLink() {
        return catagoryLink;
    }

    public String getCatagoryName() {
        return catagoryName;
    }
}
